import axios from "@/utils/axios"

export const getUser = (id: string) => {
    return axios.get(`/users/${id}`);
};

export const addUser = (userData: { name: string; email: string; password: string }) => {
    return axios.post('/users/add', userData);
};


type FieldType = {
    email?: string;
    password?: string;
    remember?: string;
};
export const login = (userData: FieldType) => {
    return axios.post('/users/login', userData);
};
